package com.sdcx.agrobank.util;

import java.util.List;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Part;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;

public interface ApiUrl {
    @GET
    Observable<ResponseBody> get(@Url String url, @QueryMap Map<String, Object> map);
    @Multipart
    @POST("/app/")
    Observable<ResponseBody> post(@QueryMap Map<String, Object> map, @Part List<MultipartBody.Part> video);
    @DELETE
    Observable<ResponseBody> delete(@Url String url, @QueryMap Map<String, Object> map);
    @PUT
    Observable<ResponseBody> put(@Url String url, @QueryMap Map<String, Object> map);
    @POST("/app/")
    Observable<ResponseBody> postget(@QueryMap Map<String, Object> map);
}
